import Film from "@/views/film/Film.vue"
import NewPlaying from "@/views/film/NewPlaying.vue"
import ComingSoon from "@/views/film/ComingSoon.vue"

const filmRoutes = [
  {
    path: '/film',
    name: 'Film',
    component: Film,
    children: [
      {
        path: 'comingsoon',
        component: ComingSoon,
      },
      {
        path: 'newplaying',
        component: NewPlaying
      },
      //重定向
      {path: '/film', redirect: 'newplaying'}
    ]
  }
]

export default filmRoutes